<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智汇考途注册页面 - 在线考试系统</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
    <style>
        body {
            background-color: #f7f7f7;
            color: #2c3e50;
            font-family: 'Arial', sans-serif;
        }
        .container {
            max-width: 400px;
            margin-top: 50px;
            padding: 20px;
            background-color: #ffffff;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        h1 {
            margin-bottom: 30px;
            font-size: 24px;
            color: #2c3e50;
            font-weight: bold; /* 加粗标题 */
            text-align: center;
        }
        .form-label {
            font-weight: bold;
        }
        .form-control {
            border-radius: 5px;
            padding: 10px;
            background-color: #ffffff;
            border: 1px solid #dcdcdc;
        }
        .btn {
            background-color: #3498db;
            color: #ffffff;
            border-radius: 5px;
            padding: 10px;
            font-weight: bold;
        }
        .btn:hover {
            background-color: #2980b9;
        }
        .text-center a {
            color: #3498db;
            text-decoration: none;
        }
        .text-center a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1 class="text-center">智汇考途注册页面</h1>
        <form action="/register" method="POST">
            <div class="form-group">
                <label for="user_type" class="form-label">选择身份:</label>
                <select class="form-control" name="user_type" id="user_type" required>
                    <option value="teacher">老师</option>
                    <option value="student">学生</option>
                    <option value="parent">家长</option>
                </select>
            </div>
            <div class="form-group">
                <label for="username" class="form-label">用户名:</label>
                <input type="text" id="username" name="username" class="form-control" required>
            </div>
            <div class="form-group">
                <label for="id" class="form-label">机号:</label>
                <input type="text" id="id" name="id" class="form-control" required>
            </div>
            <div class="form-group">
                <label for="password" class="form-label">密码:</label>
                <input type="password" id="password" name="password" class="form-control" required>
            </div>
            <button type="submit" class="btn w-100">注册</button>
        </form>
        <div class="text-center mt-3">
            <a href="/">返回登录页面</a>
        </div>
    </div>
</body>
</html>
